#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>

int main()
{
    Assimp::Importer importer;
    const aiScene *scene = importer.ReadFile("assets/model/cube.obj", aiProcess_Triangulate | aiProcess_FlipUVs);
    if (!scene || scene->mFlags & AI_SCENE_FLAGS_INCOMPLETE || !scene->mRootNode)
    {
        printf("ERROR::ASSIMP::%s\r\n", importer.GetErrorString());
        return -1;
    }
    // directory = path.substr(0, path.find_last_of('/'));

    // processNode(scene->mRootNode, scene);

    printf("ASSIMP IMPORT SUCCESS");
    return 0;
}